/*
 * QueryHomeHeaderResponse.java
 * business
 *
 * Created by ChenTao on 2016/9/9.
 *
 * Copyright (c) 2016年 yidiandao. All rights reserved.
 */

package com.yidiandao.business.data.response;

import com.google.gson.annotations.SerializedName;
import com.yidiandao.business.data.bean.Goods;
import com.yidiandao.business.data.imagemodule.Menu;
import com.yidiandao.business.data.imagemodule.Notice;
import com.yidiandao.business.data.net.BaseResponse;

import java.util.List;

/**
 * 加载首页顶部各种推荐商品的回掉
 */
public class QueryHomeHeaderResponse extends BaseResponse {

    @SerializedName("data")
    private Data data;

    public Data getData() {
        return data;
    }

    public void setData(Data data) {
        this.data = data;
    }

    public static class Data {

        @SerializedName("menu_list")
        private List<Menu> menus;

        @SerializedName("notice_list")
        private List<Notice> notices;

        @SerializedName("banner_list")
        private List<Banner> banners;

        @SerializedName("adver_list")
        private List<ImageModule> imageModules;

        @SerializedName("goods_list")
        private HomeGoods homeGoods;

        /**
         * 服务器当前时间
         */
        @SerializedName("now_time")
        private long nowTime;

        public HomeGoods getHomeGoods() {
            return homeGoods;
        }

        public void setHomeGoods(HomeGoods homeGoods) {
            this.homeGoods = homeGoods;
        }

        public long getNowTime() {
            return nowTime;
        }

        public void setNowTime(long nowTime) {
            this.nowTime = nowTime;
        }

        public List<Menu> getMenus() {
            return menus;
        }

        public void setMenus(List<Menu> menus) {
            this.menus = menus;
        }

        public List<Notice> getNotices() {
            return notices;
        }

        public void setNotices(List<Notice> notices) {
            this.notices = notices;
        }

        public List<Banner> getBanners() {
            return banners;
        }

        public void setBanners(List<Banner> banners) {
            this.banners = banners;
        }

        public List<ImageModule> getImageModules() {
            return imageModules;
        }

        public void setImageModules(List<ImageModule> imageModules) {
            this.imageModules = imageModules;
        }
    }

    /**
     * Banner图片
     */
    public static class Banner {

        @SerializedName("image")
        private String image;

        @SerializedName("type")
        private String type;

        @SerializedName("data")
        private String data;

        @SerializedName("extra")
        private String extra;

        @SerializedName("supplier_id")
        private String supplierId;

        public String getSupplierId() {
            return supplierId;
        }

        public void setSupplierId(String supplierId) {
            this.supplierId = supplierId;
        }

        public String getExtra() {
            return extra;
        }

        public void setExtra(String extra) {
            this.extra = extra;
        }

        public String getType() {
            return type;
        }

        public void setType(String type) {
            this.type = type;
        }

        public String getData() {
            return data;
        }

        public void setData(String data) {
            this.data = data;
        }

        public String getImage() {
            return image;
        }

        public void setImage(String image) {
            this.image = image;
        }
    }

    public static class ImageModule {

        @SerializedName("type")
        private String type;

        @SerializedName("info")
        private String info;

        public String getType() {
            return type;
        }

        public void setType(String type) {
            this.type = type;
        }

        public String getInfo() {
            return info;
        }

        public void setInfo(String info) {
            this.info = info;
        }
    }

    public static class HomeGoods {

        @SerializedName("hot_goods")
        private List<Goods> hotGoodsList;

        @SerializedName("profit_goods")
        private List<Goods> profitGoodsList;

        @SerializedName("best_goods")
        private List<Goods> bestGoodsList;

        @SerializedName("commodity_goods")
        private List<Goods> commodityGoodsList;

        public List<Goods> getCommodityGoodsList() {
            return commodityGoodsList;
        }

        public void setCommodityGoodsList(List<Goods> commodityGoodsList) {
            this.commodityGoodsList = commodityGoodsList;
        }

        public List<Goods> getProfitGoodsList() {
            return profitGoodsList;
        }

        public void setProfitGoodsList(List<Goods> profitGoodsList) {
            this.profitGoodsList = profitGoodsList;
        }

        public List<Goods> getHotGoodsList() {
            return hotGoodsList;
        }

        public void setHotGoodsList(List<Goods> hotGoodsList) {
            this.hotGoodsList = hotGoodsList;
        }

        public List<Goods> getBestGoodsList() {
            return bestGoodsList;
        }

        public void setBestGoodsList(List<Goods> bestGoodsList) {
            this.bestGoodsList = bestGoodsList;
        }
    }
}
